package com.ruoyi.dept.service;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.dept.domain.BsDepartment;
import com.ruoyi.dept.domain.vo.BsDepartmentTreeVo;
import com.ruoyi.dept.domain.vo.BsDepartmentVo;
import com.ruoyi.dept.domain.bo.BsDepartmentBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 科室Service接口
 *
 * @author zyb
 * @date 2024-04-22
 */
public interface IBsDepartmentService {

    /**
     * 查询科室
     */
    BsDepartmentVo queryById(Long id);

    /**
     * 查询科室列表
     */
    TableDataInfo<BsDepartmentVo> queryPageList(BsDepartmentBo bo, PageQuery pageQuery);

    /**
     * 查询科室列表
     */
    List<BsDepartmentVo> queryList(BsDepartmentBo bo);

    /**
     * 新增科室
     */
    Boolean insertByBo(BsDepartmentBo bo);
    /**
     * 新增科室
     */
    BsDepartment insertBsDepartmentByBo(BsDepartmentBo bo);

    /**
     * 修改科室
     */
    Boolean updateByBo(BsDepartmentBo bo);

    /**
     * 校验并批量删除科室信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<BsDepartmentTreeVo> tree(BsDepartmentBo bo);
}
